import { Controller, Get, Query } from '@nestjs/common';
import { ActionResultTemplateInterface } from '../common/ResponseResult';
import { TestDaoImpl } from '../Impl/TestDaoImpl';

@Controller('testController')
export class TestController {
  constructor(private readonly TestDao: TestDaoImpl) {}

  @Get('testDao')
  testDao(@Query('version') version: string): string {
    return this.TestDao.testDao(version);
  }
  @Get('queryData')
  async queryData(): Promise<ActionResultTemplateInterface> {
    return await this.TestDao.queryData();
  }
}
